/*
 * Copyright (c) 2017 Solidwang. All Rights Reserved
 */
package com.solid4j.auth.service;

import com.solid4j.auth.model.Role;
import com.solid4j.auth.page.Page;

import java.util.List;

/**
 * @author: solidwang
 * @date: 17/4/17
 * 角色接口
 */
public interface RoleService {

    Integer save(Role role);

    Role get(Integer id);

    void delete(Role role);

    Page<Role> getRoleList(String condition, Integer currentPage, Integer pageSize, String orderBy);

    List<Role> getRoles();

    void update(Role role);
}
